package com.cq.hd.member.controller;

import com.cq.hd.common.entity.mq.UserLoginRecordMsg;
import com.cq.hd.common.response.Result;
import com.cq.hd.common.response.ResultGenerator;
import com.cq.hd.member.api.TbUserLoginRecordApi;
import com.cq.hd.member.service.TbUserLoginRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户登录记录表 前端控制器
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-23
 */
@RestController
public class TbUserLoginRecordController implements TbUserLoginRecordApi {

    @Autowired
    private TbUserLoginRecordService userLoginRecordService;

    @Override
    public Result<Boolean> saveUserLoginRecord(@RequestBody UserLoginRecordMsg userLoginRecordMsg) {
        return ResultGenerator.success(userLoginRecordService.saveUserLoginRecord(userLoginRecordMsg));
    }
}
